$OpenBSD: patch-external_libodfgen_ExternalProject_libodfgen_mk,v 1.2 2016/03/01 21:39:58 robert Exp $
--- external/libodfgen/ExternalProject_libodfgen.mk.orig.port	Wed Feb 10 14:26:34 2016
+++ external/libodfgen/ExternalProject_libodfgen.mk	Wed Feb 10 14:26:47 2016
@@ -36,6 +36,7 @@ $(call gb_ExternalProject_get_state_target,libodfgen,b
 			--with-sharedptr=c++11 \
 			$(if $(verbose),--disable-silent-rules,--enable-silent-rules) \
 			CXXFLAGS="$(CXXFLAGS) $(CXXFLAGS_CXX11) $(if $(SYSTEM_REVENGE),,$(if $(filter-out MSC,$(COM)),-DLIBREVENGE_VISIBILITY))" \
+			CPPFLAGS="-fPIC -DPIC" LDFLAGS="-fPIC -DPIC" \
 			$(if $(filter LINUX,$(OS)),$(if $(SYSTEM_REVENGE),, \
 				'LDFLAGS=-Wl$(COMMA)-z$(COMMA)origin \
 					-Wl$(COMMA)-rpath$(COMMA)\$$$$ORIGIN')) \
